/*
 * encPacketStructs.h
 *
 * Created: 6/13/2013 2:56:11 AM
 *  Author: Tim
 */ 


#ifndef ENCPACKETSTRUCTS_H_
#define ENCPACKETSTRUCTS_H_


/*********ENC*********/

typedef struct encInitAsync_msg
{
	uint8_t Header;
	uint8_t msgHeader;
	struct encInitAsync_parameterByte1
	{
		uint8_t PLOC	:6;
		uint8_t INDX	:1;
		uint8_t ENCN	:1;
	}PARAM1;
	
	struct encInitAsync_parameterByte2
	{
		uint8_t ERESH	:4;
		uint8_t EDFL	:3;
		uint8_t ABS		:1;
	}PARAM2;
	
	struct encInitAsync_parameterByte3
	{
		uint8_t ERESL;
	}PARAM3;

	struct encInitAsync_parameterByte4
	{
		uint8_t EFRQ;
	}PARAM4;
	
	uint16_t checkSum;
}encInitAsync_t;

typedef struct encCurCount_msg
{
	uint8_t Header;
	uint8_t msgHeader;
	
	struct encCurCount_parameterByte1
	{
		uint8_t ENCCH	:6;
		uint8_t ENCD	:1;
		uint8_t ENCN	:1;
	}PARAM1;
	
	struct encCurCount_parameterByte2
	{
		uint8_t ENCCL;
	}PARAM2;

	uint16_t checkSum;
}encCurCount_t;

#endif /* ENCPACKETSTRUCTS_H_ */